import { IForm } from '@/base-ui/Form/types'

export const pageModelConfig: IForm = {
  formItems: [
    {
      field: 'name',
      type: 'input',
      label: '名称',
      placeholder: '请输入菜单名称'
    },
    {
      field: 'sort',
      type: 'number',
      label: '排序'
    },
    {
      field: 'type',
      type: 'select',
      label: '类型',
      placeholder: '请选择菜单类型',
      options: [
        { title: '一级菜单', value: 1 },
        { title: '二级菜单', value: 2 },
        { title: '三级菜单', value: 3 }
      ]
    },
    {
      field: 'icon',
      type: 'input',
      label: '图标',
      placeholder: '请输入图标',
      isHidden: false
    },
    {
      field: 'url',
      type: 'input',
      label: '访问路径',
      placeholder: '请输入访问路径',
      isHidden: false
    },
    {
      field: 'permission',
      type: 'input',
      label: '权限',
      placeholder: '请输入权限',
      isHidden: false
    },
    {
      field: 'parentId',
      type: 'select',
      label: '上级菜单',
      placeholder: '请选择上级菜单',
      options: [],
      isHidden: false
    }
  ],
  colLayout: { span: 24 },
  itemStyle: {}
}
